import request from '@/utils/request'
//获取回答
export function getContent(data: any) {
  return request({
    url: '/api/talk',
    method: 'post',
    data: data
  })
}
//获取历史记录
export function getHistoryContent(data: any) {
  return request({
    url: '/api/History',
    method: 'post',
    data: data
  })
}
//点赞
export function editLike(data: any) {
  return request({
    url: '/api/like',
    method: 'post',
    data: data,
    headers: {
      repeatSubmit: false
    }
  })
}
//获取录音文本
export function getVoiceText(data: any) {
  return request({
    url: '/api/get_voice_text',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
//发送短信
export function sendSms(data: any) {
  return request({
    url: '/api/send_sms',
    method: 'post',
    data: data
  })
}
//获取token
export function getTokenInfo(data: any) {
  return request({
    url: '/api/check_sms',
    method: 'post',
    data: data
  })
}
//问题反馈
export function sendQuestion(data: any) {
  return request({
    url: '/api/feedback',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
